
__tags__ = "for, each, in, loop"

class ForEach(ni.Node):
    list = ni.List(itemtype=ni.Attribute())
    item = ni.Attribute(depends=(list,))
    
    def compute_item(self):
        for i in self.list:
            yield i
